package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_version")
public class Version implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String versionName;

    private Long versionCode;

    /**
     * 是否强更，0：否；1：是
     */
    private Boolean isForce;

    /**
     * 是否可忽略，0：否；1：是
     */
    private Boolean isIgnorable;

    /**
     * 更新内容
     */
    private String updateContent;

    /**
     * 下载地址
     */
    private String url;

    /**
     * 文件MD5
     */
    private String md5;

    /**
     * 文件大小
     */
    private Integer size;

    /**
     * 是否下架，0：否；1：是
     */
    private Boolean isUp;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }
    public Long getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(Long versionCode) {
        this.versionCode = versionCode;
    }
    public Boolean getForce() {
        return isForce;
    }

    public void setForce(Boolean isForce) {
        this.isForce = isForce;
    }
    public Boolean getIgnorable() {
        return isIgnorable;
    }

    public void setIgnorable(Boolean isIgnorable) {
        this.isIgnorable = isIgnorable;
    }
    public String getUpdateContent() {
        return updateContent;
    }

    public void setUpdateContent(String updateContent) {
        this.updateContent = updateContent;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }
    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
    public Boolean getUp() {
        return isUp;
    }

    public void setUp(Boolean isUp) {
        this.isUp = isUp;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    @Override
    public String toString() {
        return "Version{" +
            "id=" + id +
            ", versionName=" + versionName +
            ", versionCode=" + versionCode +
            ", isForce=" + isForce +
            ", isIgnorable=" + isIgnorable +
            ", updateContent=" + updateContent +
            ", url=" + url +
            ", md5=" + md5 +
            ", size=" + size +
            ", isUp=" + isUp +
            ", createDatetime=" + createDatetime +
            ", updateDatetime=" + updateDatetime +
        "}";
    }
}
